/* Toast 组件样式 */
.toast {
  position: fixed;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 80%;
  min-width: 150px;
}

/* 位置样式 */
.toast-top {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.toast-bottom {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.toast-top-left {
  top: 20px;
  left: 20px;
}

.toast-top-right {
  top: 20px;
  right: 20px;
}

.toast-bottom-left {
  bottom: 20px;
  left: 20px;
}

.toast-bottom-right {
  bottom: 20px;
  right: 20px;
}

/* 类型样式 */
.toast-info {
  background-color: #1890ff;
}

.toast-success {
  background-color: #52c41a;
}

.toast-warning {
  background-color: #faad14;
}

.toast-error {
  background-color: #ff4d4f;
}

/* 图标样式 */
.toast-icon {
  margin-right: 8px;
  font-size: 16px;
}

.toast-message {
  word-break: break-word;
  flex: 1;
}

/* 动画效果 */
.toast-fade-enter-active,
.toast-fade-leave-active {
  transition: opacity 0.3s, transform 0.3s;
}

.toast-fade-enter-from,
.toast-fade-leave-to {
  opacity: 0;
  transform: translateY(-20px);
}

/* 顶部位置的动画 */
.toast-top .toast-fade-enter-from,
.toast-top .toast-fade-leave-to,
.toast-top-left .toast-fade-enter-from,
.toast-top-left .toast-fade-leave-to,
.toast-top-right .toast-fade-enter-from,
.toast-top-right .toast-fade-leave-to {
  transform: translateY(-20px);
}

/* 底部位置的动画 */
.toast-bottom .toast-fade-enter-from,
.toast-bottom .toast-fade-leave-to,
.toast-bottom-left .toast-fade-enter-from,
.toast-bottom-left .toast-fade-leave-to,
.toast-bottom-right .toast-fade-enter-from,
.toast-bottom-right .toast-fade-leave-to {
  transform: translateY(20px);
} 